package com.attms.domain.AbsentStrategy;

import java.util.HashMap;
import java.util.Map;

import com.attms.domain.Absent;
import com.attms.domain.Employee;

public class AbsentStrategySet {
    Map<Integer, AbS> AbSSet = new HashMap<>();
    public AbsentStrategySet(){
        AbSSet.put(1, new AbS1());
        AbSSet.put(2, new AbS2());
        AbSSet.put(3, new AbS3());
        AbSSet.put(5, new AbS5());
        AbSSet.put(6, new AbS6());
        AbSSet.put(7, new AbS7());
        AbSSet.put(8, new AbS8());
    }

    public void apply(int Type, Employee employee, int days, Absent absence){
        AbSSet.get(Type).apply(employee, days, absence);
    }
}
